package com.fenxiangle.yueding.entity.bo;

import android.os.Parcel;
import android.os.Parcelable;

public class EventEntity implements Parcelable {
    public int what;
    public int position;
    public String medias  ;
    public static final Creator<EventEntity> CREATOR = new Creator<EventEntity>() {
        public EventEntity createFromParcel(Parcel source) {
            return new EventEntity(source);
        }

        public EventEntity[] newArray(int size) {
            return new EventEntity[size];
        }
    };

    public EventEntity() {
    }

    public EventEntity(int what) {
        this.what = what;
    }

    public EventEntity(int what, String medias) {
        this.what = what;
        this.medias = medias;
    }

    public EventEntity(int what, int position) {
        this.what = what;
        this.position = position;
    }

    public EventEntity(int what,String medias, int position) {
        this.what = what;
        this.position = position;
        this.medias = medias;
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.what);
        dest.writeInt(this.position);
        dest.writeString(this.medias);
    }

    protected EventEntity(Parcel in) {
        this.what = in.readInt();
        this.position = in.readInt();
        this.medias = in.readString();
    }
}